package com.wht.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wht.domain.DtsGoods;
import com.wht.mapper.DtsGoodsMapper;
import com.wht.service.DtsGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wanghaotian
 * time:2022/12/05,0005 10:59
 * description:
 */

@Service
public class DtsGoodsServiceImpl implements DtsGoodsService {

    @Autowired
    private DtsGoodsMapper goodsMapper;

    @Override
    public int count() {
        QueryWrapper<DtsGoods> wrapper = new QueryWrapper<>();
        wrapper.eq("deleted", false);
        Integer count = goodsMapper.selectCount(wrapper);
        return count;
    }
}
